//
//  UrlRequestManager.h
//  LO_MUSIC
//
//  Created by 向祖华 on 16/2/29.
//  Copyright © 2016年 杨少锋. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "singleton.h"
//枚举请求类型
typedef NS_ENUM(NSInteger,requestUrlType){
    GET,
    POST
};

//定义block
typedef void(^successBlock)(id item);
typedef void(^faileBlock)(NSError*err);

@interface UrlRequestManager : NSObject

+(void)requestWith:(requestUrlType)type URL:(NSString*)URL condition:(NSDictionary*)condition SuccesBlock:(successBlock)successBlock faileBlock:(faileBlock)failBlock;
//调用宏定义单例初始化方法的声明
single_interface(UrlRequestManager)

@end
